<template>
    <div class="baseinfo">
        <div class="baseinfo-card">
            <div class="baseinfo-cardleft border-right">
                <div class="cardleft-totalscore">
                    <span class="cardleft-score">4.8</span>
                    <span class="cardleft-text">分</span>
                    <span class="cardleft-desc">很棒</span>
                </div>
                <div class="cardleft-comment iconfont">
                    <span class="cardleft-commentnum">2948条评论</span>
                </div>
            </div>

            <div class="baseinfo-cardright">
                <div>
                    <span class="cardright-title">景点简介</span>
                </div>
                <div>
                    <span class="cardright-text iconfont">开放时间、贴士</span>
                </div>
            </div>
        </div>
        <div class="baseinfo-address border-top">
            <span class="baseinfo-address-icon iconfont">&#xe758;</span>
            大连市中山区滨海中路9号
            <span class="baseinfo-address-arrow iconfont">&#xe665;</span>
        </div>
    </div>
</template>

<script>
export default {
    name: 'DetailBaseInfo'
}
</script>

<style lang="scss" scoped>
.baseinfo{
    position: relative;
    top: -0.1rem;
    padding: 0.1rem 0.2rem 0 0.2rem;
    margin-bottom: 0.1rem;
    border-radius: 0.1rem 0.1rem 0 0;
    background: #fff;
    .baseinfo-card{
        display: flex;
        padding-top: 0.1rem;
        padding-bottom: 0.2rem;
        .baseinfo-cardleft{
            flex: 1;
            position: relative;
            .cardleft-totalscore{
                color: #ff8300;
                line-height: 0.44rem;
                .cardleft-score{
                    font-size: 0.44rem;
                }
                .cardleft-text{
                    font-size: 0.28rem;
                    margin-left: -0.1rem;
                }
                .cardleft-desc{
                    font-size: 0.28rem;
                    margin-left: 0.2rem;
                }
            }
            .cardleft-comment{
                color: #9e9e9e;
                line-height: 0.32rem;
                .cardleft-commentnum{
                    font-size: 0.24rem;
                    margin-right: 0.2rem;
                }
                &:after{
                    content: "\e665";
                    font-size: 0.24rem;
                    position: absolute;
                    top: 0.3rem;
                    right: 0.2rem;
                }
            }
        }
        .baseinfo-cardright{
            flex: 1;
            position: relative;
            .cardright-title{
                font-size: 0.28rem;
                color: #212121;
                line-height: 0.48rem;
                padding-left: 0.3rem;
            }
            .cardright-text{
                color: #9e9e9e;
                font-size: 0.24rem;
                padding-left: 0.3rem;
                &:after{
                    content: "\e665";
                    font-size: 0.24rem;
                    position: absolute;
                    top: 0.3rem;
                    right: 0.2rem;
                }
            }
        }
    }
    .baseinfo-address{
        display: block;
        line-height: 0.36rem;
        position: relative;
        padding: 0.2rem 0;
        color: #212121;
        .baseinfo-address-icon{
            color: #9e9e9e;
            font-size: .36rem;
            margin-right: 0.2rem;
        }
        .baseinfo-address-arrow{
            position: absolute;
            right: 0;
            top: 50%;
            margin-top: -.14rem;
            color: #9e9e9e;
            font-size: .24rem;
        }
    }
}
</style>
